#ifndef MESSAGES_H_
#define MESSAGES_H_

#include "TableRecord.h"
#include "Queue.h"

enum Operation {
	LIST = 0, ADD = 1, SEARCH = 2, DELETE = 3, HELP = 4, EXIT = 5, UNKNOWN = 6
};

typedef struct RequestMessage {
	Operation operation;
	TableRecord record;
} RequestMessage;

typedef struct ResponseMessage {
	Operation operation;
	bool success;
	bool hasNext;
	TableRecord record;
} ResponseMessage;

#endif /* MESSAGES_H_ */
